package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name string `gorm:"type:varchar(20);not null;comment:名称"`
	Pass string `gorm:"type:varchar(40);not null;comment:密码"`
}

func (User) TableName() string {
	return "user"
}

type Works struct {
	gorm.Model
	Name      string `gorm:"type:varchar(20);not null;comment:名称"`
	Videos    string `gorm:"type:varchar(255);not null;comment:视频"`
	Pictures  string `gorm:"type:varchar(255);not null;comment:图片"`
	Introduce string `gorm:"type:varchar(255);not null;comment:简介"`
}

func (Works) TableName() string {
	return "works"
}
